<template>
  <div class="macbriefcontainer _macbriefcontainer">
    <div :style="reversedirection ? style : ''">
      <div>
        <div>
          <h3>{{ isnew === "yes" ? "新款" : "" }}</h3>
          <span>{{ screensize }}</span>
          <h1>{{ goodname }}</h1>
          <h2>{{ goodsignature }}</h2>
          <p>进一步了解</p>
        </div>
      </div>
      <div>
        <img :src="imgsrc" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "macbriefinfo",
  data() {
    return {
      style: "flex-direction:" + "row-reverse;",
    };
  },
  props: [
    "reversedirection",
    "isnew",
    "screensize",
    "goodname",
    "goodsignature",
    "imgsrc",
  ],
  components: {},
};
</script>

<style lang="less" scoped>
@media only screen and(min-width: 800px) {
  .macbriefcontainer {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 60px 0;
    div {
      max-width: 1000px;
      display: flex;
      width: 100%;
      justify-content: space-around;
      align-items: center;
      div:nth-child(1) {
        width: 45%;
        text-align: left;
        div {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          h3 {
            color: rgb(234, 94, 0);
          }
          p {
            color: rgb(12, 106, 205);
          }
        }
      }
      div:nth-child(2) {
        display: flex;
        align-items: center;
        width: 65%;
        img {
          width: 100%;
          height: auto;
          padding: 20px 0;
        }
      }
    }
  }
}
@media screen and(max-width:800px) {
  ._macbriefcontainer {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 60px 0;
    flex-direction: column;
    div {
      width: 100%;
      display: flex;
      align-items: center;
      flex-direction: column !important;
      div:nth-child(1) {
        width: 50%;
        display: flex;
        div {
          text-align: left;
          align-items: flex-start;
          flex-direction: column;
          h3 {
            color: rgb(234, 94, 0);
          }
          p {
            color: rgb(12, 106, 205);
          }
        }
      }
      div:nth-child(2) {
        padding: 20px 0;
        width: 70%;
        img{
                   width: 100%;
                    height: auto;
                    padding: 20px 0;
        }
      }
    }
  }
}
</style>